package com.bst.etl.domain;

import com.bst.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 数据集市对象 etl_draw_dm
 * 
 * @author ruoyi
 * @date 2022-07-17
 */
public class EtlDrawDm
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long idDrawDm;

    /** 指标 */
    @Excel(name = "指标")
    private String idIndex;

    /** 表名 */
    @Excel(name = "表名")
    private String cdTb;

    private Integer fgFromDw;
    /** 可建表标志   不可累加指标一定不能建表， */
    @Excel(name = "可建表标志")
    private Integer fgTb;

    /** 建表状态 */
    @Excel(name = "建表状态")
    private Integer euStatus;

    /** 所属系统 */
    @Excel(name = "所属系统")
    private String sdSys;

    /** 备注 */
    @Excel(name = "备注")
    private String des;

    /** 启用标志 */
    @Excel(name = "启用标志")
    private Integer fgAct;

    /** 创建人 */
    @Excel(name = "创建人")
    private String naEmpCre;

    @Excel(name = "默认过滤条件")
    private Integer fgDefFilter;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dtSysCre;

    /**  */
    @Excel(name = "")
    private String naEmpModi;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dtSysModi;

    /**  */
    @Excel(name = "")
    private String sqlValue;

    /** 指标名 */
    @Excel(name = "指标名")
    private String naIndex;

    /**  */
    @Excel(name = "")
    private String sqlWhere;

    /** 0 配置 1 sql */
    @Excel(name = "0 配置 1 sql")
    private Integer euTp;

    @Excel(name = "时间字段")
    private String fldDt;

    /**  */
    @Excel(name = "")
    private String formu;

    @Excel(name = "依赖下级表")
    private String tbRelys;

    private String flds;

    private String sqlInsert;

    public Integer getFgFromDw() {
        return fgFromDw;
    }

    public void setFgFromDw(Integer fgFromDw) {
        this.fgFromDw = fgFromDw;
    }

    public String getSqlInsert() {
        return sqlInsert;
    }

    public void setSqlInsert(String sqlInsert) {
        this.sqlInsert = sqlInsert;
    }

    public String getFlds() {
        return flds;
    }

    public void setFlds(String flds) {
        this.flds = flds;
    }

    public String getTbRelys() {
        return tbRelys;
    }

    public void setTbRelys(String tbRelys) {
        this.tbRelys = tbRelys;
    }

    public String getFldDt() {
        return fldDt;
    }

    public void setFldDt(String fldDt) {
        this.fldDt = fldDt;
    }

    public void setIdDrawDm(Long idDrawDm)
    {
        this.idDrawDm = idDrawDm;
    }

    public Long getIdDrawDm() 
    {
        return idDrawDm;
    }
    public void setIdIndex(String idIndex) 
    {
        this.idIndex = idIndex;
    }

    public String getIdIndex() 
    {
        return idIndex;
    }
    public void setCdTb(String cdTb) 
    {
        this.cdTb = cdTb;
    }

    public String getCdTb() 
    {
        return cdTb;
    }
    public void setFgTb(Integer fgTb) 
    {
        this.fgTb = fgTb;
    }

    public Integer getFgTb() 
    {
        return fgTb;
    }
    public void setEuStatus(Integer euStatus) 
    {
        this.euStatus = euStatus;
    }

    public Integer getEuStatus() 
    {
        return euStatus;
    }
    public void setSdSys(String sdSys) 
    {
        this.sdSys = sdSys;
    }

    public String getSdSys() 
    {
        return sdSys;
    }
    public void setDes(String des) 
    {
        this.des = des;
    }

    public String getDes() 
    {
        return des;
    }
    public void setFgAct(Integer fgAct) 
    {
        this.fgAct = fgAct;
    }

    public Integer getFgAct() 
    {
        return fgAct;
    }
    public void setNaEmpCre(String naEmpCre) 
    {
        this.naEmpCre = naEmpCre;
    }

    public Integer getFgDefFilter() {
        return fgDefFilter;
    }

    public void setFgDefFilter(Integer fgDefFilter) {
        this.fgDefFilter = fgDefFilter;
    }

    public String getNaEmpCre() 
    {
        return naEmpCre;
    }
    public void setDtSysCre(Date dtSysCre) 
    {
        this.dtSysCre = dtSysCre;
    }

    public Date getDtSysCre() 
    {
        return dtSysCre;
    }
    public void setNaEmpModi(String naEmpModi) 
    {
        this.naEmpModi = naEmpModi;
    }

    public String getNaEmpModi() 
    {
        return naEmpModi;
    }
    public void setDtSysModi(Date dtSysModi) 
    {
        this.dtSysModi = dtSysModi;
    }

    public Date getDtSysModi() 
    {
        return dtSysModi;
    }
    public void setSqlValue(String sqlValue) 
    {
        this.sqlValue = sqlValue;
    }

    public String getSqlValue() 
    {
        return sqlValue;
    }
    public void setNaIndex(String naIndex) 
    {
        this.naIndex = naIndex;
    }

    public String getNaIndex() 
    {
        return naIndex;
    }
    public void setSqlWhere(String sqlWhere) 
    {
        this.sqlWhere = sqlWhere;
    }

    public String getSqlWhere() 
    {
        return sqlWhere;
    }
    public void setEuTp(Integer euTp) 
    {
        this.euTp = euTp;
    }

    public Integer getEuTp() 
    {
        return euTp;
    }
    public void setFormu(String formu) 
    {
        this.formu = formu;
    }

    public String getFormu() 
    {
        return formu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("idDrawDm", getIdDrawDm())
            .append("idIndex", getIdIndex())
            .append("cdTb", getCdTb())
            .append("fgTb", getFgTb())
            .append("euStatus", getEuStatus())
            .append("sdSys", getSdSys())
            .append("des", getDes())
            .append("fgAct", getFgAct())
            .append("fgDefFilter", getFgDefFilter())
            .append("naEmpCre", getNaEmpCre())
            .append("dtSysCre", getDtSysCre())
            .append("naEmpModi", getNaEmpModi())
            .append("dtSysModi", getDtSysModi())
            .append("sqlValue", getSqlValue())
            .append("naIndex", getNaIndex())
            .append("sqlWhere", getSqlWhere())
            .append("euTp", getEuTp())
            .append("formu", getFormu())
            .toString();
    }
}
